package com.bear.sgg.springboot_11_cache;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.cache.annotation.EnableCaching;

//加上@EnableCaching注解才能使spring boot缓存起作用
@EnableCaching
@MapperScan(value = "com.bear.sgg.springboot_11_cache.mapper")
@SpringBootApplication
public class Springboot11CacheApplication {

    public static void main(String[] args) {
        SpringApplication.run(Springboot11CacheApplication.class, args);
    }

}
